/**
 *  Copyright 2010 ShenYang voole Co. Ltd.
 *  All right reserved. 
 */
package com.dianning.service;

import java.util.List;

import com.dianning.bean.Visitor;
import com.dianning.exception.DianningException;

/**
 * 功能描述:访客操作接口
 *
 * 创建日期 Apr 10, 2010
 *
 * @author zhangbaochao
 *
 * @version 1.0
 *
 */
public interface VisitorService {
	/**
	 * 保存Visitor对象
	 * 
	 * @param visitor
	 * 			Visitor对象
	 * @return Visitor
	 * 			Visitor对象
	 */
	public Visitor saveVisitor(Visitor visitor) throws DianningException ;
	
	/**
	 * 更新Visitor对象
	 * 
	 * @param visitor
	 * 			Visitor对象
	 * @return Visitor
	 * 			Visitor对象
	 */
	public Visitor updateVisitor(Visitor visitor) throws DianningException ;
	
	
	/**
	 * 根据主键ID获取Visitor对象
	 * 
	 * @param id
	 * 			主键ID
	 * @return Visitor
	 * 			Visitor对象
	 */
	public Visitor findVisitorById(long id);
	
	/**
	 * 要据IP uid 获取Visitor对象
	 * 
	 * @param ip
	 * 			String
	 * @param uid
	 * 			long
	 * @return Visitor
	 * 			Visitor对象
	 */
	public Visitor findVisitorByIpUid(String ip,long uid);
	
	/**
	 * 获取今天Visitor个数
	 * @return long
	 * 			Visitor个数
	 */
	public long getTodayVisitorNumByUid(long uid);
}
